package com.zjuh.goodboy.claw;

import com.zjuh.goodboy.misc.HttpCodes;

public class ClawerResult {
	
	private boolean success;
	
	private int code;
	
	private String data;

	public ClawerResult() {
		super();
	}

	public ClawerResult(boolean success) {
		super();
		this.success = success;
	}

	public boolean isSuccess() {
		return success;
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
		if (code != HttpCodes.SUCCESS) {
			success = false;
		} else {
			success = true;
		}
	}

	public String getData() {
		return data;
	}

	public void setData(String data) {
		this.data = data;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}


}
